package com.baox.agridata.synchronous.service.impl;

import com.baox.agridata.synchronous.dao.TXDRSlaughterHouseMapper;
import com.baox.agridata.synchronous.entity.TXDRSlaughterHouseEntity;
import com.baox.agridata.synchronous.service.TXDRSlaughterHouseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class TXDRSlaughterHouseServiceImpl implements TXDRSlaughterHouseService {

    @Autowired
    private TXDRSlaughterHouseMapper txdrSlaughterHouseMapper;


    @Override
    public TXDRSlaughterHouseEntity selectTXDRSlaughterHouseById(String mid) {
        return txdrSlaughterHouseMapper.selectTXDRSlaughterHouseById(mid);
    }

    @Override
    public Integer insertIntoTXDRSlaughterHouse(TXDRSlaughterHouseEntity txdrSlaughterHouse) {
        return txdrSlaughterHouseMapper.insertIntoTXDRSlaughterHouse(txdrSlaughterHouse);
    }

    @Override
    public Integer updateTXDRSlaughterHouseById(TXDRSlaughterHouseEntity txdrSlaughterHouse) {
        return txdrSlaughterHouseMapper.updateTXDRSlaughterHouseById(txdrSlaughterHouse);
    }

    @Override
    public List<TXDRSlaughterHouseEntity> selectTXDRSlaughterDataToChengDu(String startTime) {
        return txdrSlaughterHouseMapper.selectTXDRSlaughterDataToChengDu(startTime);
    }
}
